<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button onclick="openwin()">查看浏览器信息</button>
</body>
</html>
<script>
    var id;
	var id1;
	//打开浏览器信息
	function openwin(){
		clearTimeout(id);
		//延迟3秒打开
		setTimeout(function(){
			newWin= window.open("navigator.html","","width=450,height=450");
		},3000);
		clearTimeout(id1);
		//延迟8秒关闭
		setTimeout(function(){
			if(newWin && !newWin.closed){
				newWin.close();
			}
			//重新定向为navigator.html页面
			location.href="navigator.html";
		},8000);
	};
</script>